package com.aps.entity.dto;

import com.aps.entity.domain.dish.Dish;

import lombok.Data;

/**
 * @author liaoguangan
 * @description <POS同步菜品信息>
 * @date 2018/4/2 18:37
 */
@Data
public class PosSyncDish {

    private String dishCode;
    private String dishName;
    private String dishFirSpell;
    private String dviDisplayName;
    private String dishTypeCode;
    private String dishUnit;
    private String storeCode;

    public Dish build() {
        Dish dish = new Dish();
        dish.setCode(this.getDishCode());
        dish.setName(this.getDishName());
        dish.setLetterFirPy(this.getDishFirSpell());
        dish.setDeviceDisplayName(this.getDviDisplayName());
        dish.setDishTypeCode(this.getDishTypeCode());
        dish.setUnit(this.getDishUnit());
        dish.setStoreCode(this.getStoreCode());

        return dish;
    }

}
